package com.bilibilifans.data.img;

import com.bilibilifans.data.MyCode;
import com.bilibilifans.data.UpInformation;

import java.util.HashMap;

/**
 * 获取UP个人信息类
 * @author 司啸飞
 * @create 2021-05-12 17:21
 *
 */
public class GetInformation {
    static final String URL = "http://api.bilibili.com/x/space/acc/info?mid=";

    public static void getInformation(String mid) throws Exception {
        HashMap<String, String> map = MyCode.getCode(URL + mid, UpInformation.GET_INFOR);
        UpInformation.getsMap().putAll(map);
    }



    public static void main(String[] args) throws Exception {
        GetInformation.getInformation("672328094");
        HashMap<String, String> spaceMap = UpInformation.getsMap();
        System.out.println(spaceMap);
    }
}